Publish Terminal.Gui.Interop.Spectre to NuGet#5421
Merged
Conversation
Copilot
AI
changed the title
[WIP] Fix
Publish Terminal.Gui.Interop.Spectre to NuGet
May 26, 2026
Terminal.Gui.Interop not being published
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the CI/CD workflows so the Terminal.Gui.Interop.Spectre NuGet package is built, packed, and published alongside Terminal.Gui, and documents that behavior in the workflow README.
Changes:
- Publish workflow: add explicit workflow permissions and pack/push
Terminal.Gui.Interop.Spectreto NuGet.org. - Build validation: pack
Terminal.Gui.Interop.Spectreas part of package validation. - Workflow docs: update README to mention packing/publishing both packages.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| .github/workflows/README.md | Documents that both Terminal.Gui and Terminal.Gui.Interop.Spectre are packed/published. |
| .github/workflows/publish.yml | Adds contents: read permission and packs/pushes Terminal.Gui.Interop.Spectre to NuGet.org. |
| .github/workflows/build-validation.yml | Adds a CI step to pack Terminal.Gui.Interop.Spectre into ./local_packages. |
| - name: Build Release Terminal.Gui | ||
| run: dotnet build Terminal.Gui/Terminal.Gui.csproj --no-incremental --nologo --force --configuration Release | ||
| - name: Build Release Terminal.Gui packages | ||
| run: dotnet build Terminal.Gui.Interop.Spectre/Terminal.Gui.Interop.Spectre.csproj --no-incremental --nologo --force --configuration Release |
Comment on lines
69
to
71
| - **Triggers**: push to `main`, `develop`, and tags `v*`(ignores `**.md`) | ||
| - Uses GitVersion to compute SemVer, builds Release, packs with symbols, and pushes to NuGet.org using `NUGET_API_KEY` | ||
| - Uses GitVersion to compute SemVer, builds Release, packs Terminal.Gui and Terminal.Gui.Interop.Spectre with symbols, and pushes both to NuGet.org using `NUGET_API_KEY` | ||
| - **Automatically triggered** by the Create Release workflow when a new tag is pushed |
- Build Terminal.Gui.csproj in addition to Terminal.Gui.Interop.Spectre so that 'dotnet pack --no-build' succeeds for both packages - Fix README trigger docs to match actual workflow (develop + tags, not main) - Correct 'Additional actions' section to reflect tag-based triggers Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This was referenced Jun 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes
Terminal.Gui.Interop.Spectrewas packable but excluded from the publish workflow. Releases only publishedTerminal.Gui, leaving the interop package absent from NuGet.Proposed Changes/Todos
Terminal.Gui.Interop.Spectrewith symbols..nupkgto NuGet.org.Terminal.Gui.Interop.Spectreduring CI package validation.Pull Request checklist:
CTRL-K-Dto automatically reformat your files before committing.dotnet testbefore commit///style comments)